// 首先添加请求 TOKEN
import request from "@/utils/request";
import { method } from "lodash";

/***
 *
 * 搜索联想API接口
 */

export const getSearchSuggestions = (q) => {
  return request({
    method: "GET",
    url: "/v1_0/suggestion",
    params: {
      q,
    },
  });
};

/**
 *  获取搜索结果API接口
 */

export const getSearchResult = (params) => {
  return request({
    method: "GET",
    url: "/v1_0/search",
    params,
  });
};
